package com.itheima.mapper;

import com.itheima.domain.AddressBook;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author itheima
 * @since 2022-05-02
 */
@Mapper
@Repository
public interface AddressBookMapper {
    /**
     * 插入
     * @param addressBook addressBook
     * @return int
     */
    int insert(AddressBook addressBook);

    int updateById(AddressBook addressBook);

    AddressBook selectById(String id);

    int deleteByBatchId(@Param("idList") List<String> idList);
}
